package com.seckill.search.domain.query;

import com.seckill.common.domain.query.PageQuery;
import com.seckill.common.utils.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "商品搜索条件")
public class ItemPageQuery extends PageQuery {

    @ApiModelProperty(value = "搜索关键字", example = "Redis")
    private String keyword;
    @ApiModelProperty(value = "商品1级分类id", example = "1")
    private Long firstCateId;
    @ApiModelProperty(value = "商品2级分类id", example = "1")
    private Long secondCateId;
    @ApiModelProperty(value = "商品3级分类id", example = "1")
    private Long thirdCateId;
    @ApiModelProperty(value = "商品状态，1：待上架，2：已上架，3：已下架", example = "1")
    private Integer status;
}
